From 96e465b6d9389ebbfecbb851a9291e308f156bd3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Mon, 20 Aug 2018 16:34:50 +0200 Subject: [PATCH] checkbutton: Remove snapshot implementation It just does when the default GtkWidget implementation does anyway: snapshot all child widgets --- gtk/gtkcheckbutton.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/gtk/gtkcheckbutton.c b/gtk/gtkcheckbutton.c index 083a0a7e26..c91a4c8bd0 100644 --- a/gtk/gtkcheckbutton.c +++ b/gtk/gtkcheckbutton.c @@ -256,22 +256,6 @@ gtk_check_button_get_property (GObject *object, } } -static void -gtk_check_button_snapshot (GtkWidget *widget, - GtkSnapshot *snapshot) -{ - GtkCheckButtonPrivate *priv = gtk_check_button_get_instance_private (GTK_CHECK_BUTTON (widget)); - GtkWidget *child; - - if (priv->draw_indicator) - gtk_widget_snapshot_child (widget, priv->indicator_widget, snapshot); - - child = gtk_bin_get_child (GTK_BIN (widget)); - - if (child) - gtk_widget_snapshot_child (widget, child, snapshot); -} - static void gtk_check_button_direction_changed (GtkWidget *widget, GtkTextDirection previous_direction) @@ -306,7 +290,6 @@ gtk_check_button_class_init (GtkCheckButtonClass *class) widget_class->measure = gtk_check_button_measure; widget_class->size_allocate = gtk_check_button_size_allocate; - widget_class->snapshot = gtk_check_button_snapshot; widget_class->state_flags_changed = gtk_check_button_state_flags_changed; widget_class->direction_changed = gtk_check_button_direction_changed; -- 2.30.2